package com.geqian.structure.entity;

import com.geqian.structure.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 列字段信息
 * @author geqian
 * @date 10:45 2023/1/5
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TableColumnInfo {
    @TableField("字段名称")
    private String columnName;
    @TableField("类型")
    private String columnType;
    @TableField("注释")
    private String columnComment;
    @TableField("是否可以为空")
    private String isNullable;
    @TableField("默认值")
    private String columnDefault;

    //保存不排除字段
    private static List<String> fieldList;

    public static List<String> getFieldList() {
        return fieldList;
    }

    public static void setFieldList(List<String> fieldList) {
        TableColumnInfo.fieldList = fieldList;
    }
}
